//
//  UIButton+Extension.swift
//  swiftWEIbo
//
//  Created by mac－gt on 15/11/28.
//  Copyright © 2015年 mac－gt. All rights reserved.
//

import UIKit
extension UIButton{
    convenience init(title:String,fontSize:CGFloat,textColor:UIColor,imageName:String){
        self.init()
        setTitle(title, forState: UIControlState.Normal)
        setTitleColor(textColor, forState: UIControlState.Normal)
        titleLabel?.font=UIFont.systemFontOfSize(fontSize)
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
    }
}
